﻿<br />
<div class="code">
&#64;model&nbsp;CellPhoneModel<br />
<br />
&lt;p&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;input&nbsp;type=<span class="String">"checkbox"</span>&nbsp;&#64;Html.KoAttrChecked(m&nbsp;=&gt;&nbsp;m.HasCellphone)&nbsp;id=<span class="String">"cb1"</span>/&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;label&nbsp;for=<span class="String">"cb1"</span>&gt;I&nbsp;have&nbsp;a&nbsp;cellphone&lt;/label&gt;<br />
&lt;/p&gt;<br />
&lt;p&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;Your&nbsp;cellphone&nbsp;number:<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;input&nbsp;type='text'&nbsp;&#64;Html.KoAttrValue(m&nbsp;=&gt;&nbsp;m.CellphoneNumber).KoAttrDisable(m&nbsp;=&gt;&nbsp;!m.HasCellphone)&nbsp;/&gt;<br />
&lt;/p&gt;<br />
<br />
<br />
&#64;Model.ApplyBindingsScript(KoBindingOptions.IncludeData)
</div>